﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucLoanPhone.ascx.cs" Inherits="UserControl_ucLoanPhone" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<script language="javascript" type="text/javascript">
    function UpdateParentsLogin() {
        tb_remove();
        window.parent.location = window.parent.location;
    }
</script>

Loan ID
<asp:TextBox ID="txt_idloan" runat="server" Width="86px"></asp:TextBox>
<asp:UpdatePanel ID="updLphone" runat="server">
    <ContentTemplate>
        <table id="tab11">
            <tr>
                <%--<td>
            Loan ID :
        </td>
        <td>
            
        </td>--%>
                <td>
                    LPhone ID
                </td>
                <td colspan="3">
                    <asp:DropDownList ID="drPhoneID" runat="server" Height="22px" AutoPostBack="True"
                        OnSelectedIndexChanged="drPhoneID_SelectedIndexChanged">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    Brand
                </td>
                <td>
                    <asp:TextBox ID="txt_Brand" runat="server" Width="87px"></asp:TextBox>
                </td>
                <td>
                    Model
                </td>
                <td>
                    <asp:TextBox ID="txt_model" runat="server" Width="149px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Loan Fee
                </td>
                <td>
                </td>
                <td>
                    IMEI
                </td>
                <td>
                    <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" TargetControlID="txt_IME"
                        FilterType="Numbers">
                    </asp:FilteredTextBoxExtender>
                    <asp:TextBox ID="txt_IME" runat="server" Width="149px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    <%--   <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender3" runat="server" TargetControlID="txt_loanfee"
                        FilterType="Numbers">
                    </asp:FilteredTextBoxExtender>--%>
                    <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" runat="server" TargetControlID="txt_loanfee"
                        WatermarkCssClass="clsWaterMarkRequiredField" WatermarkText="0">
                    </asp:TextBoxWatermarkExtender>
                    <asp:TextBox ID="txt_loanfee" runat="server" Width="70px" Style="color: Red;">0</asp:TextBox>
                </td>
                <td>
                </td>
                <td>
                    Accessories Included
                </td>
                <td>
                    <asp:TextBox ID="txt_access" runat="server" Width="180px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                </td>
                <td>
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td>
                    Notes
                </td>
                <td colspan="3">
                    <asp:TextBox ID="txt_notes" runat="server" TextMode="MultiLine" Height="44px" Width="91%"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Date Out
                </td>
                <td>
                    <asp:TextBox ID="txt_dateout" runat="server" Width="92px"></asp:TextBox>
                    <asp:CalendarExtender ID="CalendarExtender2" TargetControlID="txt_dateout" Format="dd/MM/yyyy"
                        runat="server">
                    </asp:CalendarExtender>
                </td>
                <td>
                    Date In
                </td>
                <td>
                    <asp:TextBox ID="txt_datein" runat="server" Width="92px"></asp:TextBox>
                    <asp:CalendarExtender ID="CalendarExtender1" TargetControlID="txt_datein" Format="dd/MM/yyyy"
                        runat="server">
                    </asp:CalendarExtender>
                </td>
            </tr>
            <tr>
                <td>
                    Amount Deposit
                </td>
                <td>
                    <%--   <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" runat="server" TargetControlID="txt_amount"
                        FilterType="Numbers">
                    </asp:FilteredTextBoxExtender>--%>
                    <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender2" runat="server" TargetControlID="txt_amount"
                        WatermarkCssClass="clsWaterMarkRequiredField" WatermarkText="0">
                    </asp:TextBoxWatermarkExtender>
                    <asp:TextBox ID="txt_amount" runat="server" Width="92px" Text="0"></asp:TextBox>
                </td>
                <td>
                    Payment Method
                </td>
                <td>
                    <asp:DropDownList ID="dropMethod" runat="server" Height="22px" Width="98px">
                        <asp:ListItem Value="cash">Cash</asp:ListItem>
                        <asp:ListItem Value="EFT">EFT</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    Deposit Taken
                </td>
                <td>
                    <asp:CheckBox ID="cbDepositeTaken" runat="server" />
                </td>
                <td>
                    Depositit Refunded&nbsp;
                </td>
                <td>
                    <asp:CheckBox ID="cbDesRef" runat="server" />
                </td>
            </tr>
            <tr>
                <td colspan="4" align="center">
                </td>
            </tr>
        </table>
    </ContentTemplate>
    <Triggers>
        <asp:AsyncPostBackTrigger ControlID="drPhoneID" EventName="SelectedIndexChanged" />
    </Triggers>
</asp:UpdatePanel>
<p style="text-align: center">
    <asp:Button ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click" Height="30px"
        Width="57px" />
    &nbsp;</p>
